// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
const start = new Date().getTime();

// function update() {
//   new Vue({               //实例化一个vue对象
//     el: '#app',           //element事件，html容器
//     router,
//     components: {App},
//     template: `<App :elapsed="${new Date().getTime()- start}"/>`
//   })
//   requestAnimationFrame(update);
// }
// requestAnimationFrame(update);


new Vue({               //实例化一个vue对象
  el: '#app',           //element事件，html容器
  router,
  components: {App},
  // template: `<App :elapsed="new Date().getTime() - start"/>`
  template: `<App :elapsed="${new Date().getTime() - start}"/>`
})
